<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\LogRepository")
 */
class Log {
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $log_type_id;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $description;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $parameter;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $admin_user_id;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $ip;

    /**
     * @ORM\Column(type="datetime", nullable=true)
     */
    private $created_at;

    public function getId (): ?int {
        return $this->id;
    }

    public function getLogTypeId (): ?int {
        return $this->log_type_id;
    }

    public function setLogTypeId (?int $log_type_id): self {
        $this->log_type_id = $log_type_id;

        return $this;
    }

    public function getParameter (): ?string {
        return $this->parameter;
    }

    public function setParameter (?string $parameter): self {
        $this->parameter = $parameter;

        return $this;
    }

    public function getAdminUserId (): ?int {
        return $this->admin_user_id;
    }

    public function setAdminUserId (?int $admin_user_id): self {
        $this->admin_user_id = $admin_user_id;

        return $this;
    }

    public function getCreatedAt (): ?\DateTimeInterface {
        return $this->created_at;
    }

    public function setCreatedAt (?\DateTimeInterface $created_at): self {
        $this->created_at = $created_at;

        return $this;
    }

    public function getDescription (): ?string {
        return $this->description;
    }

    public function setDescription (?string $description): self {
        $this->description = $description;

        return $this;
    }

    public function getIp (): ?string {
        return $this->ip;
    }

    public function setIp (?string $ip): self {
        $this->ip = $ip;

        return $this;
    }
}
